home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 43 / Mac Magazin and MacEasy Magazine CD - Issue 43.iso / Software / Mobiles Büro / Newton / Newton Entwickler / DIL 2.0 Sample Code ƒ / DILette-Mac-2 / README.DILette < prev   
Text File  |  1997-04-17  |  2KB  |  50 lines

  1. /*
  2. **      Newton Developer Technical Support Sample Code
  3. **
  4. **      DILette, minimal code to demonstrate use of the CDILs
  5. **
  6. **      by David Fedor, Newton Developer Technical Support
  7. **
  8. **      Copyright © 1996-1997 by Apple Computer, Inc.  All rights reserved.
  9. **
  10. **      You may incorporate this sample code into your applications without
  11. **      restriction.  This sample code has been provided "AS IS" and the
  12. **      responsibility for its operation is 100% yours.  You are not
  13. **      permitted to modify and redistribute the source as "DTS Sample Code."
  14. **      If you are going to re-distribute the source, we require that you
  15. **      make it clear in the source that the code was descended from
  16. **      Apple-provided sample code, but that you've made changes.
  17. */
  18.  
  19.  
  20. This is the bare minimum code necessary to demonstrate use of the CDILs and
  21. still run as a standalone application.  There is no UI at all in DILette.
  22.  
  23. DILette expects to run on a Macintosh and use the Modem Port for a serial
  24. connection to a Newton device which is running the SoupDrink package.  If
  25. you want to use a different port (or use ADSP or straight serial without
  26. MNP error correction), uncomment the appropriate lines in the source.
  27.  
  28. DILette will connect to the Newton device and send a command to the Newton
  29. SoupDrink application so that SoupDrink will respond with "Hello".  DILette
  30. then closes the connection.  If DILette believes everything worked properly,
  31. it will beep twice and immediately exit.
  32.  
  33. If any errors occur, a message will be printed in MacsBug. Press "g" and hit
  34. return to have the connection closed down properly, otherwise you'll probably
  35. have to reboot your Macintosh in order to use the serial port again.
  36.  
  37. Note that the CSTR resource file must be linked in to every DIL application.
  38. It contains resources used internally by the CDIL to find the appropriate
  39. Communications Toolbox files.
  40.  
  41. Also note that the names of the serial ports ("Modem Port") etc will have to
  42. be modified to use DILette on a non-English version of the Macintosh System.
  43.  
  44.  
  45. Modified April 1997 - converted to CodeWarrior 11. Note that DILette still
  46. uses the old ANSI libraries, not the MSL ones which are the default ones
  47. for CW11.  Why?  Because the MSL libraries don't by default include one for
  48. 2-byte integers and 8-byte longs, which is what the Mac DILs use right now.
  49. If you build your own 2i8d MSL library, things should work fine too.
  50.